package com.bdq.content.infrastructure.persistence.mysql.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdq.content.infrastructure.model.dto.ContentQueryInfraDTO;
import com.bdq.content.infrastructure.persistence.mysql.pojo.Content;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author malei
* @description 针对表【content(内容表)】的数据库操作Mapper
* @createDate 2024-05-10 17:16:38
* @Entity generator.domain.Content
*/
public interface ContentMapper extends BaseMapper<Content> {

    /**
     * @param page
     * @param infraDTO
     * @return
     */
    IPage<Content> contentQuery(@Param("page") Page<Content> page, @Param("param") ContentQueryInfraDTO infraDTO);

    /**
     * @param page
     * @param infraDTO
     * @return
     */
    IPage<Content> recommendQuery(@Param("page") Page<Content> page, @Param("param") ContentQueryInfraDTO infraDTO);
}




